package cn.wolfcode.service;

import cn.wolfcode.domain.Comment;
import cn.wolfcode.qo.CommentQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 评论服务接口
 */
public interface ICommentService extends IService<Comment>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<Comment> queryPage(CommentQuery qo);

    /**
     * 通过留言id查询评论
     * @param messageBoardId
     * @return
     */
    List<Comment> getByMessageBoardId(Long messageBoardId);
}
